import request from '@/utils/request'

export const reqGetSuggestion = keyword => {
  return request({
    method: 'get',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}

export const reqGetSearch = (keyword, page, per_page = 10) => {
  return request({
    method: 'get',
    url: '/v1_0/search',
    params: {
      q: keyword,
      page,
      per_page
    }
  })
}
